package com.bt7274.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 种子记录表 ：记录用户与种子的交互
 * </p>
 *
 * @author hp
 * @since 2025-03-25
 */
@TableName("pt_record")
public class PtRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 种子id
     */
    private String torrentId;

    /**
     * 用户为该种子上传量
     */
    private Long uploaded;

    /**
     * 用户为该种子下载量
     */
    private Long downloaded;

    /**
     * 是否正在做种，0：false，1：true
     */
    private Integer seeding;

    /**
     * 是否完成下载，0：false，1：true
     */
    private Integer completed;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getTorrentId() {
        return torrentId;
    }

    public void setTorrentId(String torrentId) {
        this.torrentId = torrentId;
    }

    public Long getUploaded() {
        return uploaded;
    }

    public void setUploaded(Long uploaded) {
        this.uploaded = uploaded;
    }

    public Long getDownloaded() {
        return downloaded;
    }

    public void setDownloaded(Long downloaded) {
        this.downloaded = downloaded;
    }

    public Integer getSeeding() {
        return seeding;
    }

    public void setSeeding(Integer seeding) {
        this.seeding = seeding;
    }

    public Integer getCompleted() {
        return completed;
    }

    public void setCompleted(Integer completed) {
        this.completed = completed;
    }

    @Override
    public String toString() {
        return "PtRecord{" +
        "id = " + id +
        ", userId = " + userId +
        ", torrentId = " + torrentId +
        ", uploaded = " + uploaded +
        ", downloaded = " + downloaded +
        ", seeding = " + seeding +
        ", completed = " + completed +
        "}";
    }
}
